package com.wyj.utils;

import android.content.Context;

import java.io.FileInputStream;
import java.io.IOException;

public class QbSdkHelper {
    public static String getCurrentProcessName(Context var0) {
        FileInputStream var1 = null;

        String var7;
        try {
            String var2 = "/proc/self/cmdline";
            var1 = new FileInputStream(var2);
            byte[] var3 = new byte[256];

            int var4;
            int var5;
            for(var4 = 0; (var5 = var1.read()) > 0 && var4 < var3.length; var3[var4++] = (byte)var5) {
            }

            if (var4 <= 0) {
                return null;
            }

            String var6 = new String(var3, 0, var4, "UTF-8");
            var7 = var6;
        } catch (Throwable var18) {
            var18.printStackTrace();
            return null;
        } finally {
            if (var1 != null) {
                try {
                    var1.close();
                } catch (IOException var17) {
                    var17.printStackTrace();
                }
            }

        }

        return var7;
    }
}
